package com.lin.chapter10;

public abstract class HummerModel {
	public abstract void start();
	public abstract void stop();
	public abstract void alarm();
	public abstract void engineBoom();
	public abstract boolean isAlarm();

	public void run(){
		this.start();
		this.engineBoom();
		if (isAlarm())
			this.alarm();
		this.stop();
	}
}
